import Drag from "@/utils/drag.js";

const dragDirective = {
    mounted(el, binding) {
        new Drag(el, binding.value || {});
    },
};

export function setupDragDirective(app) {
    app.directive("drag", dragDirective);
}

export default setupDragDirective;
